# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=zathura-pdf-mupdf
pkgver=0.4.4
pkgrel=1
pkgdesc="mupdf plugin to zathura"
url="https://pwmt.org/projects/zathura-pdf-mupdf/"
arch="all"
license="Zlib"
options="!check" # no test suite
depends="zathura !zathura-pdf-poppler"
makedepends="
	meson
	mupdf-dev
	ninja
	zathura-dev
	"
source="https://pwmt.org/projects/zathura-pdf-mupdf/download/zathura-pdf-mupdf-$pkgver.tar.xz
	fix-meson.build.patch
	"

build() {
	abuild-meson build
	meson compile -C build
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C build
}

sha512sums="
32be4b4458547860e28bb90bf8b8f0f2e5c26f369d55f6f25e0e73b9e7c4a82b6110fd42bd55120f1be358b9d7a6c72cc1c883e192d007a05a85f501c504e1a1  zathura-pdf-mupdf-0.4.4.tar.xz
f88da2384d2b9f882a949880ff57b635a20dd1e1146d5c933871d7ed58543b4770ffa5775dadd13b160b3a430fcc7306a6083abbf97355d3b4ee73ef357c78f5  fix-meson.build.patch
"
